<!--
 * @Author: 噜噜噜 1163376226@qq.com
 * @Date: 2025-03-27 14:38:43
 * @LastEditors: 噜噜噜 1163376226@qq.com
 * @LastEditTime: 2025-04-17 17:27:39
 * @FilePath: /auto/automation-project/index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自动化项目</title>
    <link rel="stylesheet" href="../css/style.css">
</head>

<body>
    <div class="header-container">
        <h1 class="main-title">自动化测试平台</h1>
        <div class="button-group">
            <a href="add-module.html" class="nav-button">新增模块</a>
            <a href="add-element.html" class="nav-button">新增元素</a>
            <a href="scenario.html" class="nav-button">场景管理</a>
        </div>
    </div>

    <div class="test-container">
        <h2 class="section-title">测试功能</h2>
        <div class="test-controls">
            <select id="testScenario" class="form-select" aria-label="选择测试场景">
                <option value="">选择测试场景</option>
            </select>
            <button id="runTest" class="btn">开始测试</button>
        </div>

        <div id="testResult" class="test-result">
            <div class="test-status">
                <h3>测试状态: <span id="testStatus">未开始</span></h3>
                <div class="progress-container">
                    <div id="testProgress" class="progress-bar"></div>
                </div>
            </div>
            <div id="testOutput" class="test-output"></div>
            <div id="testScreenshots" class="screenshot-gallery"></div>
        </div>
    </div>
    <script type="module">
        import { init } from '../js/app.js';
        document.addEventListener('DOMContentLoaded', init);
    </script>
</body>

</html>